Skip to content

Conversation

@rekhap2kandhavelan
Copy link
Contributor

RDKEMW-12004 : Middleware leak m_drmConfigParam = new configs()
Reason for change: Resolved memory leak issue
Test Procedure: Refer ticket
Risks: Medium
Priority: P1

Signed-off-by: Rekha Kandhavelan [rekha_kandhavelan@Comcast.com]

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a memory leak in the DrmSessionManager class by properly deleting the m_drmConfigParam object in the destructor. The configs object is allocated with new in the constructor (line 67) but was previously not being freed, resulting in a memory leak on every DrmSessionManager destruction.

Changes:

  • Added MW_SAFE_DELETE(m_drmConfigParam) to the DrmSessionManager destructor to properly free the allocated memory

Copilot AI review requested due to automatic review settings January 20, 2026 08:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants